<%= form_for @expense, :html => {:class => 'form-horizontal', :multipart => true} do |f| %>
<fieldset>
  <div class="form-group">
    <!--%= f.hidden_field %-->
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Source</label>
    <div class="col-sm-8">
      <%= f.text_field :source, :class=>"form-control", :placeholder=>"Expense source" %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Category</label>
    <div class="col-sm-8">
      <% slist = ['Food', 'Addiction', 'Emotion'] %>
      <%= f.select(:category, slist.collect {|s| [s.to_s,s.to_s]}, {:include_blank => "Select category"}, {:class => "form-control"} ) %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Subtype</label>
    <div class="col-sm-8">
      <% slist = ['Food', 'Addiction', 'Emotion'] %>
      <%= f.select(:subtype, slist.collect {|s| [s.to_s,s.to_s]}, {:include_blank => "Select subtype"}, {:class => "form-control"} ) %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Amount</label>
    <div class="col-sm-8">
      <%= f.text_field :amount, :class=>"form-control", :placeholder=>"Amount Expended" %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Description</label>
    <div class="col-sm-8">
      <%= f.text_field :description, :class=>"form-control", :placeholder=>"Description" %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Avatar</label>
    <div class="col-sm-8">
      <%= f.file_field :avatar %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Include</label>
    <div class="col-sm-8">
      <%= f.radio_button :include, :class=>"form-control", :checked=>"false" %>
    </div>
  </div>
  <p>Three Power Levels: Light weight 50% - Medium 75% - Heavy 100%</p>
  <div class="form-group">
    <div class="col-sm-5 col-sm-offset-2">
      <%= f.submit "Create Expense", :class=>"btn btn-lg btn-success" %>
    </div>
  </div>
</fieldset>

<% end %>
